package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckItem;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface SetmealDao {
    public void add(Setmeal setmeal);
    public void setSetmealAndCheckGroup(Map<String, Integer> map);
    public Page<CheckItem> findByCondition(String queryString);
    public List<Setmeal> findAll();
    public Setmeal findById4Detail(Integer id);
    public List<Map> getSetmealReport();
    List<Map<String, Object>> getSetmealIncomeDetailsByDate(@Param("startDate") Date startDate, @Param("endDate") Date endDate);
    Long findSumSetmealIncomeByDate(@Param("startDate") Date startDate, @Param("endDate") Date endDate);
}
